﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="application-navigation-list.aspx.cs"
    Inherits="SmartSpace.WebApp._console.core.application_navigation_list" MasterPageFile="~/_console/_console.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
    导航列表
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <asp:HyperLink ID="_ctlLinkBack" runat="server" NavigateUrl="~/_console/core/application-list.aspx">返回</asp:HyperLink>
    <asp:HyperLink ID="_ctlLinkAdd" runat="server">添加</asp:HyperLink>
    <asp:LinkButton ID="_ctlBtnSetDefault" runat="server" Text="设置为默认" OnClick="_ctlBtnSetDefault_Click" />
    <asp:LinkButton ID="_ctlBtnSetShortcut" runat="server" Text="设置为快捷方式" OnClick="_ctlBtnSetShortcut_Click" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
    <div class="box">
        <h2>导航列表</h2>
        <div class="block">
            <asp:TreeView ID="_ctlTreeNavigation" runat="server" Width="100%">
                <SelectedNodeStyle Font-Bold="true" BackColor="ActiveBorder" />
            </asp:TreeView>
        </div>
    </div>

    <div class="box">
        <h2>快捷方式列表
        </h2>
        <div class="block">
            <table class="list">
                <asp:Repeater ID="_ctlGridShortcut" runat="server" OnItemCommand="_ctlGridShortcut_ItemCommand">
                    <HeaderTemplate>
                        <thead>
                            <tr>
                                <th>-
                                </th>
                                <th>Caption
                                </th>
                            </tr>
                        </thead>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <asp:LinkButton ID="_ctlBtnDelete" runat="server" CommandName="delete" CommandArgument='<%# Eval("NavigationId") %>'>删除</asp:LinkButton>
                            </td>
                            <td>
                                <%# Eval("Caption") %>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                    </FooterTemplate>
                </asp:Repeater>
            </table>
        </div>
    </div>
</asp:Content>
